﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Collections;
using SystemX.Infrastructure;
using SystemX;
using SystemX.Utility;
using SystemX.Web;

namespace SalePoints.Models
{
	public class AppSettings
	{
		private static Dictionary<string,string> _SettingDic;

		public static Dictionary<string, string> SettingDic
		{
			get
			{
				if (_SettingDic == null) {
					_SettingDic = new Dictionary<string, string>();
					foreach (var x in ConfigurationManager.AppSettings.Keys)
					{

						_SettingDic.Add(x.ToString(), ConfigurationManager.AppSettings[x.ToString()]);
					}
				}
				return _SettingDic;
			}
		}
		public static string SettingDicJson {
			get
			{
				return SettingDic.ToJSONStr1();
			}
		}
	}
}
